package com.info.zhiduoduo.weixin.controller;

import com.info.zhiduoduo.common.constants.SmartResult;
import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
import com.info.zhiduoduo.weixin.service.EvaluateTagConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "微信端-评价标签")
@RestController
@RequestMapping("/evaluate/tag")
public class EvaluateTagController {

	@Resource
	EvaluateTagConfigService evaluateTagConfigService;

	@ApiOperation("微信端查询评价标签")
	@PostMapping("/queryEvaluateTagByUserType")
	public SmartResult queryEvaluateTagByUserType(@RequestBody BaseSimpleFormBean formBean) {
		return evaluateTagConfigService.queryEvaluateTagByUserType(formBean);
	}

}
